package com.fcscs.cservice.client.common.model.restaurants;

import java.util.Collection;
import java.util.Map;

import com.fcscs.core.gwt.common.CoreConstants;
import com.fcscs.core.gwt.common.EntityModelData;
import com.fcscs.cservice.client.common.CServiceConstants;
import com.fcscs.cservice.domain.Title;
import com.fcscs.share.gwt.common.LocaleHelper;

public class TitleModelData extends EntityModelData<Title> {

	public TitleModelData(Title t) {
		super(t);
	}

	@Override
	protected void populateNames(Collection<String> tempNames) {
		tempNames.add(CoreConstants.ID);
		tempNames.add(CServiceConstants.TITLE);
	}

	@Override
	protected void populateProps(Map<String, Object> props) {
		props.put(CServiceConstants.TITLE, LocaleHelper.getName(entity.getTitleSecLang(), entity.getTitle()));
	}

	@Override
	protected <X> void setProperty(String property, X value) {

	}
}
